package br.com.SAM.modelos;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQuery;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


@NamedQueries({
	@NamedQuery(name="medico.findByCNS", query="select m from Medico m where m.cns = :param"),
	@NamedQuery(name="medico.findByName", query="select m from Medico m where m.nome = :param"),
	@NamedQuery(name="medico.listByName", query="select m from Medico m where m.nome like :param")
	
})
@Entity
@AttributeOverride(column=@Column(name="cpf",nullable=false), name="cpf")
public class Medico extends Pessoa implements Serializable{
	
	public Medico(){
		super();
	}
	
	
	
	
	
	

}
